package com.umpay.dto.merBusi.req.query;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/*******************************************************************
 * description : 交易回单查询，业务系统请求数据
 * @author zhangru
 * @date 2018年5月24日 下午7:35:53
 * @version 1.0
 *******************************************************************/
public class BankReceiptQueryBusiReq extends CommonBusiReq{
	
	@NotEmpty(message = "原订单号不能为空")
	@Pattern(message="原订单号格式不正确")
	public String oriOrderId;//	原订单号	Y	
	
	@NotEmpty(message = "原订单日期不能为空")
	@Pattern(message="原订单日期格式不正确")
	public String oriOrderDate;//	原订单日期	Y	
	
	@NotEmpty(message = "商户号不能为空")
	@Pattern(message="商户号格式不正确")
	public String merId;//	商户号	Y	
	
	@Pattern(message="分账交易的明细单号格式不正确")
	public String merTrace;//	分账交易的明细单号		N	
	
	@NotEmpty(message = "交易类型不能为空")
	@Pattern(message="交易类型格式不正确")
	public String transType;//	交易类型		Y		04：提现	05：分账
	
	@NotNull(message = "业务产品号不能为空")
	@Pattern(message = "业务产品号格式不正确")
	private String bProductId	;//业务产品号	变长8	Y	商户业务产品号(B)\\w{7}
	
	@NotNull(message = "支付产品号不能为空")
	@Pattern(message = "支付产品号格式不正确")
	private String pProductId	;//原子产品号	变长8	Y	商户原子产品号(P)\\w{7}
	
	public String getOriOrderId() {
		return oriOrderId;
	}
	public void setOriOrderId(String oriOrderId) {
		this.oriOrderId = oriOrderId;
	}
	public String getOriOrderDate() {
		return oriOrderDate;
	}
	public void setOriOrderDate(String oriOrderDate) {
		this.oriOrderDate = oriOrderDate;
	}
	public String getMerId() {
		return merId;
	}
	public void setMerId(String merId) {
		this.merId = merId;
	}
	public String getMerTrace() {
		return merTrace;
	}
	public void setMerTrace(String merTrace) {
		this.merTrace = merTrace;
	}
	public String getTransType() {
		return transType;
	}
	public void setTransType(String transType) {
		this.transType = transType;
	}
	
	public String getbProductId() {
		return bProductId;
	}
	public void setbProductId(String bProductId) {
		this.bProductId = bProductId;
	}
	public String getpProductId() {
		return pProductId;
	}
	public void setpProductId(String pProductId) {
		this.pProductId = pProductId;
	}
	
	@Override
	public String toString() {
		return "BankReceiptQueryBusiReq [" +super.toString()
				+ "，oriOrderId=" + oriOrderId + ", oriOrderDate=" + oriOrderDate + ", merId="
		        + merId + ", merTrace=" + merTrace + ", transType=" + transType + ", bProductId=" + bProductId
		        + ", pProductId=" + pProductId + "]";
	}

}
